package com.zzyl.serve.job;

import com.zzyl.serve.service.IAlertRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("alertJob")
public class AlertJob {

    @Autowired
    private IAlertRuleService alertRuleService;

//    public void alertJobHandle(){
//        alertRuleService.handleAlertJob();
//        System.out.println("报警规则的定时处理任务执行了");
//    }

    public void alertJobHandle(){
        System.out.println("=================================w==========================");
        alertRuleService.handleAlertJobs();
        System.out.println("================== 报警规则的定时处理任务执行了 ==================");
    }
}